<?php

use yii\db\Migration;
use yii\db\Schema;

class m170830_084806_ADD_COLUMN_FINANCE_ORDER_PRODUCT_CODE extends Migration
{
    public function up()
    {

         $this->addColumn('{{finance_order}}', 'product_code', Schema::TYPE_STRING. "(16) null COMMENT '团期 code' ");
    }

    public function down()
    {
        echo "m170830_084806_ADD_COLUMN_FINANCE_ORDER_PRODUCT_CODE cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
